package construct;

public class Person {
    private String name;
    private String age;

    public Person() {
        System.out.println("这是父类的无参构造方法++++++");
    }
    public Person(String name,String age){
        System.out.println("这是父类的有参构造方法——————");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
